<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>认识jquery</title>
    <script></script>
</head>
<body>
<h1 id="myh1">你好，世界</h1>

</body>
<script src="../../js/jquery-3.3.1.js"></script>

<!--原生的js来得到h1标签中的属性值
    原生js的对象：js对象也可以说是dom对象
-->
<script>
    let myh1 = document.getElementById("myh1")
    console.log(myh1)
    // console.log("内容是："+myh1.innerHTML)
    console.log("内容是："+myh1.innerText)
</script>

<!--jquery的写法
    jquery的对象：jquery对象,也可以叫做$
-->
<script>
    let juqyer_myh1 = $('#myh1')
    alert(juqyer_myh1.html())
</script>


</html>